import request from '@/utils/request'

//列表
export function channel_list(params) {
    return request({
        url: '/v1/channel/list',
        method: 'get',
        params
    })
}
//详情
export function channel_info() {
    return request({
        url: '/v1/channel/info',
        method: 'get'
    })
}
//添加
export function channel_add(data) {
    return request({
        url: '/v1/channel/add',
        method: 'post',
        data
    })
}
//修改
export function channel_edit(data) {
    return request({
        url: '/v1/channel/edit',
        method: 'post',
        data
    })
}
//状态变更
export function channel_upflag(params) {
    return request({
        url: '/v1/channel/flag',
        method: 'get',
        params
    })
}
//删除
export function channel_stats(params) {
    return request({
        url: '/v1/channel/stats',
        method: 'get',
        params
    })
}
//所有dsp
export function channel_all(params) {
    return request({
        url: '/v1/channel/all',
        method: 'get',
        params
    })
}
//所有模版
export function channel_temp(params) {
    return request({
        url: '/v1/channel_template/all',
        method: 'get',
        params
    })
}
